home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
tlxdsz21.zip
/
AUTOZCMD.SLT
< prev
next >
Wrap
Text File
|
1991-02-03
|
600b
|
13 lines
main(str cmd)
{
int old_zmod_auto; // <-- int for previous status
if (not cmd) // check passed parameters, abort if none
return; // 'not cmd' is TRUE if the str is empty
old_zmod_auto = _zmod_auto; // <-- store the old value
_zmod_auto = 1; // <-- turn auto-Zmodem ON
cputs(cmd); // send the passed cmd to the BBS
cputs("^M"); // along with a CR or <Enter>
waitfor("Command? ", 300); // wait up to 5 minutes for a main prompt
_zmod_auto = old_zmod_auto; // <-- reset auto-Zmodem as it was
}